home *** CD-ROM | disk | FTP | other *** search
- Path: news.microsoft.com!news
- From: a-cnadc@microsoft.com (Dann Corbit)
- Newsgroups: comp.lang.c
- Subject: Re: More Modulus questions
- Date: 23 Feb 1996 01:14:13 GMT
- Organization: Microsoft Corporation
- Message-ID: <4gj4d5$85c@news.microsoft.com>
- References: <Pine.SOL.3.90.960219171637.21117B-100000@eddie> <4gfnka$ni7@spanky.pls.ov.com> <4gfp5a$r8e@cloner2.ix.netcom.com>
- NNTP-Posting-Host: 157.57.171.202
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <4gfp5a$r8e@cloner2.ix.netcom.com>, wzjn@ix.netcom.com says...
- { snippage }
- >
- > if (first % 7)
- > printf("First integer was a 7\n");
- > else
- > printf("Not a 7\n");
- In C, false is 0. Any non-zero value is evaluated as true.
- --
- The opinions expressed in this message are my own personal views
- and do not reflect the official views of Microsoft Corporation.
-
-